# Contributor: Richard Mortier <mort@cantab.net>
# Maintainer: Richard Mortier <mort@cantab.net>
pkgname=jhead
pkgver=3.04
pkgrel=0
pkgdesc="Exif Jpeg header manipulation tool"
url="http://www.sentex.net/~mwandel/jhead/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
source="http://www.sentex.net/~mwandel/jhead/jhead-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	make all
}

package() {
	install -Dm755 jhead "$pkgdir"/usr/bin/jhead
}

doc() {
	cd "$builddir"
	gzip -v9 jhead.1
	install -Dm644 jhead.1.gz "$subpkgdir"/usr/share/man/man1/jhead.1.gz
	install -Dm644 readme.txt \
		"$subpkgdir"/usr/share/licenses/$pkgname/readme.txt
}

sha512sums="d783b02059ebcb01845d346e7c48bdc9d9f12fb7b0fd47bf8aff0a85a03f3523fbc536ddab0912f1c56ddb315b6cf31f16d4c7a4f81112d9a4c76a4a57ec1aed  jhead-3.04.tar.gz"
